package com.blog.service.imp.active;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blog.dao.active.ActiveDao;
import com.blog.entity.active.Active;
import com.blog.entity.vo.ActiveVo;
import com.blog.service.active.ActiveService;
 
@Service
public class ActiveServiceImp implements  ActiveService{
	
	@Autowired
	private ActiveDao dao;
	
	@Override
	public Integer saveActive(Active ac) {
		return dao.saveActive(ac);
	}

	@Override
	public Integer updateActive(Active ac) {
		
		return dao.updateActive(ac);
	}

	@Override
	public List<Active> listAllActive(Map<String,Object> map) {
		return dao.listAllActive(map);
	}

	@Override
	public Active selectShowMdText(Integer activeId) {
		return dao.selectShowMdText(activeId);
	}

	@Override
	public Integer countActive(Map<String, Object> map) {
		return dao.countActive(map);
	}

	@Override
	public List<ActiveVo> selectIndexShowActive(Map<String, Object> map) {
		return dao.selectIndexShowActive(map);
	}

}
